<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/1/30 0030
 * Time: 下午 13:37
 */

namespace app\admin\validate;

use think\Validate;
class Product extends Validate
{
    protected $rule= [
        'products_name'=>'require',
        'products_introduction'=>'require',
        'products_number'=>'require',
        'products_sort'=>'require',
        'products_pid'=>'require',
        'products_marketprice'=>'require',
        'products_sellingprice'=>'require'
    ];
    protected $message=[
        'products_name.require'=>'请输入商品名称',
        'products_introduction.require'=>'请输入买点',
        'products_sort.require'=>'请输入排序',
        'products_pid'=>'请选择所属分类',
        'products_number'=>'请输入商品编号',
        'products_marketprice'=>'请输入商品市场价',
        'products_sellingprice'=>'请输入商品卖价'
    ];
}